projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed245b4
)
expander: Use gtk_widget_measure
author
Timm Bäder
<mail@baedert.org>
Sat, 18 Feb 2017 10:10:16 +0000
(11:10 +0100)
committer
Timm Bäder
<mail@baedert.org>
Sat, 18 Feb 2017 18:01:28 +0000
(19:01 +0100)
gtk/gtkexpander.c
patch
|
blob
|
history
diff --git
a/gtk/gtkexpander.c
b/gtk/gtkexpander.c
index 45286a19ca48250ccfb2dce6b9ef2716c2f81fae..b786d6f47127d9675d785aa6dbe4b4f932de35e9 100644
(file)
--- a/
gtk/gtkexpander.c
+++ b/
gtk/gtkexpander.c
@@
-934,7
+934,8
@@
gtk_expander_resize_toplevel (GtkExpander *expander)
{
GtkRequisition child_requisition;
- gtk_widget_get_preferred_height_for_width (child, child_allocation.width, &child_requisition.height, NULL);
+ gtk_widget_measure (child, GTK_ORIENTATION_VERTICAL, child_allocation.width,
+ &child_requisition.height, NULL, NULL, NULL);
toplevel_allocation.height += child_requisition.height;
}